using System;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Collections;
using System.Collections.Generic;
namespace Kunlun.Models
{
    [Table("Consumer_pic")]
      public class Consumer_pic
      {
        
         [DisplayName("用户图片ID")] 
         public int ID { get; set; }
         [Required(ErrorMessage = "用户ID不能空")]
        
         [DisplayName("用户ID")] 
        
         public int UserID { get; set; }
         [Required(ErrorMessage = "图库ID不能空")]  
         [DisplayName("图库ID")] 
         public int Library { get; set; }
         [DisplayName("md5码")] 
         public string Md5 { get; set; }
         [DisplayName("图片地址")] 
         public string ImageUrl { get; set; }
         [DisplayName("图片alt")] 
         public string ImageAlt { get; set; }
         [DisplayName("中等大小图片地址")] 
         public string ListPicUrl { get; set; }
         [DisplayName("缩略图地址")] 
         public string ThumUrl { get; set; }
         [DisplayName("存储空间")] 
         public double Space { get; set; }
         [DisplayName("高度")] 
         public double Height { get; set; }
         [DisplayName("宽度")] 
         public double Width { get; set; }
         [DisplayName("状态")] 
         public int Status { get; set; }
         [Required(ErrorMessage = "上传时间不能空")]  
         [DisplayName("上传时间")] 
         public DateTime BeginDate { get; set; }
         [DisplayName("上传IP")] 
         public string BeginIP { get; set; }
         [DisplayName(" ")] 
         public DateTime LastUpdateTime { get; set; }
          [ForeignKey("UserID")]
         public Consumer Consumer { get; set; }

          [ForeignKey("Library")]
          public Consumer_library Consumer_library { get; set; }
         } 
} 
